<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-edit">
        <input id="id" name="id" th:value="${post.id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">岗位编码：</label>
            <div class="col-sm-8">
                <input id="postCode" name="postCode" th:value="${post.postCode}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">岗位名称：</label>
            <div class="col-sm-8">
                <input id="postName" name="postName" th:value="${post.postName}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">显示顺序：</label>
            <div class="col-sm-8">
                <input id="postSort" name="postSort" th:value="${post.postSort}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态（0正常 1停用）：</label>
            <div class="col-sm-8">
                <input id="status" name="status" th:value="${post.status}" class="form-control" type="text">
            </div>
        </div>
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">创建者：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="createBy" name="createBy" th:value="${post.createBy}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <input id="createTime" name="createTime" th:value="${post.createTime}" class="form-control" type="text">
            </div>
        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">更新者：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input id="updateBy" name="updateBy" th:value="${post.updateBy}" class="form-control" type="text">-->
<!--            </div>-->
<!--        </div>-->
 <!--       <div class="form-group">
            <label class="col-sm-3 control-label">更新时间：</label>
            <div class="col-sm-8">
                <input id="updateTime" name="updateTime" th:value="${post.updateTime}" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input id="remark" name="remark" th:value="${post.remark}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "sys/post";
    $("#form-post-edit").validate({
        onkeyup: false,
        rules: {
            xxxx: {
                required: true,
            },
        }
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/editDo", $('#form-post-edit').serialize());
        }
    }
</script>
</body>
</html>
